<template>
   <div class="app">
    <div class="nav">
      <h1 id="logo">蓝桥书城</h1>
      <h1>后台管理系统</h1>
    </div>
    <div class="content">
    <div class="left">
      <router-link to="/first" class="link"><h1>商品管理</h1></router-link>
      <router-link to="/second" class="link"><h1>订单管理</h1></router-link>
      <router-link to="/third" class="link"><h1>购物车管理</h1></router-link>
      <router-link to="/fourth" class="link"><h1>用户管理</h1></router-link>
    </div>
    <div class="right">
   
      <router-view>
      </router-view>
    </div>

    
    </div>
    

   </div>

</template>

<script>
   

</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.nav {
  width: 100%;
  height: 100px;
  background-color: #333;
  color: white;
  text-align: center;
  line-height: 100px;
  /* display: flex;
  align-items: center;
  justify-content: center; */
}

.content {
  flex: 1;
  display: flex;
}

.left {
  width: 20%;
  background-color: pink;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.right {
  width: 80%;

  padding: 20px;
}

.link {
  display: block;
  margin-bottom: 20px;
  text-decoration: none;
  color: black;
}

.link:hover {
  background-color: #a9b649;
  padding: 10px;
  border-radius: 5px;
}

router-view {
  flex: 1;
}
#logo {
  float: left;
}
</style>
